analyser.polarity_scores get only compound

48

sid = SentimentIntensityAnalyzer()
ss = sid.polarity_scores(sentence)['pos'] # the positive score

Comments

Submit
0 Comments